package com.base.myproject.server;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public class CC {

	public CC()
	{  System.out.println("CC");
	//	init();
	}
	protected void init()
	{
		System.out.println("cc init");
		
	}
	
	

	   int j = 100;
		String a ="";
		/**
		 * @param args
		 */
		static int k =100;
		public static void main(String[] args) {
			
		
		
				String[][] strarray = new String[][]{{"1","99"},{"101","88"}};
				StringBuffer sbf = new StringBuffer();
				sbf.append("(1=2 ");
				for(String[] stra :strarray)
				{
					sbf.append(" or bcode like '"+stra[1]+"%'");
				}
				sbf.append(" )");
				System.out.println(sbf);
		
		/*	final Executor pool = Executors.newFixedThreadPool(10);  
			
			pool.execute(new Runnable() {  
				public void run() {  
					
					 while(k<999999)
						{
							System.out.println(Thread.currentThread().getName() + ": " + (++k));
						}    
				}
			});
			
			
			
//			CC tt = new CC();
//		Inc inc = tt.new Inc();
//		Thread[] t = new Thread[10];
//		for (int i = 0; i < 10; i++) {
//		t[i] = new Thread(inc);
//		t[i].start();
//		}
		
//		Thread t1 = new Thread(inc);
//		Thread t2 = new Thread(inc);
//		
//		t1.start();
//		t2.start();
		}

		private synchronized void inc() {
			while(j<99999)
			{
				System.out.println(Thread.currentThread().getName() + ": " + (++j));
			}
		}

		class Inc implements Runnable {
		public void run() {
			//synchronized(a)
			{
			//	while(j<=99999)
				{
//					System.out.println(Thread.currentThread().getName() + ": " + (j));
//					j++;
					inc();
					
				}
					
			}
			
//		for (int i = 0; i < 90; i++) {
//		inc();
//		}
		}*/
		}

	

}
